<template>
  <div id="app">
    <img alt="Vue logo" src="./assets/logo.png">
    <h1>A lot of shit here</h1>
    <div>
      <button v-for="item in funs" v-bind:key="item.name" @click="changeTab(item.name)">{{ item.name }}</button>
    </div>
    <component :is="currentTab"></component>
  </div>
</template>

<script>
// import HelloWorld from './components/HelloWorld.vue'
import pluginEngine from './core/pluginEngine'
export default {
  name: 'App',
  data(){
    return {
      funs:pluginEngine.getFuns(),
      currentTab:''
    }
  },
  components: {
    // HelloWorld
  },
  methods:{
    changeTab:function(name){
      this.currentTab = "CustomFun-"+name
    }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
